package ace.module.account.core.impl.dao.repository;

import ace.cmp.spring.data.jdbc.querydsl.core.repository.QuerydslJdbcBaseRepository;
import ace.module.account.core.impl.constant.AccountCoreConstant;
import ace.module.account.core.impl.dao.entity.IamAccountPassword;
import com.baomidou.dynamic.datasource.annotation.DS;
import java.util.List;
import org.springframework.stereotype.Repository;

/**
 * 账户的密码 repository.
 *
 * @author Caspar
 */
@DS(AccountCoreConstant.DEFAULT_DATA_SOURCE_NAME)
@Repository
public interface IamAccountPasswordRepository
    extends QuerydslJdbcBaseRepository<IamAccountPassword, Long> {

  IamAccountPassword getByIamAccountId(Long accountId);

  List<IamAccountPassword> getByIamAccountIdIn(List<Long> accountIds);

  IamAccountPassword getByIamAccountIdAndDeleteFlagIsFalse(Long iamAccountId, Long deleteFlag);
}
